ostree-sysroot: add debug option to help testing
authorJonathan Lebon <jlebon@redhat.com>
Fri, 19 Feb 2016 16:58:08 +0000 (11:58 -0500)
committerJonathan Lebon <jlebon@redhat.com>
Fri, 19 Feb 2016 16:58:08 +0000 (11:58 -0500)
commiteba7df0da93fb53c6438646ce11036595a37d76f
treeadba3d29bc49cc7a09c6359b430260067ecc19a8
parent3a555114bc22f599d72d95d71c2579fd2345cf6f
ostree-sysroot: add debug option to help testing

If ostree is run in a test setup where it operates as root in a tmp
directory, it might cause issues to flag the deployments as immutable.
The test harness might simply be doing an `rm -rf` (effectively the case
for gnome-desktop-testing-runner), which will then fail.

We add a new debug option to the ostree_sysroot object using GLib's
GDebugKey functionality to allow our tests to communicate to ostree that
we don't want immutable deployments.
src/libostree/ostree-sysroot-deploy.c
src/libostree/ostree-sysroot-private.h
src/libostree/ostree-sysroot.c
tests/libtest.sh